<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>模拟器配置管理 | 模拟器配置列表</title>
<@fm.header />
<style type="text/css">
body {
	font: 12px/20px "微软雅黑", "宋体", Arial, sans-serif, Verdana, Tahoma;
	padding: 0;
	margin: 0;
}
.layout-split-proxy-h{
	position:absolute;
	width:2px;
	background:#888;
	font-size:1px;
	cursor:e-resize;
	display:none;
	z-index:5;
}
.layout-split-north{
	border-bottom:5px solid #efefef;
}
.layout-split-south{
	border-top:5px solid #efefef;
}
.layout-split-east{
	border-left:0px solid #efefef;
}
.layout-split-west{
	border-right:0px solid #efefef;
}
a:link {
 text-decoration: none;
}
a:visited {
 text-decoration: none;
}
a:hover {
 text-decoration: underline;
}
a:active {
 text-decoration: none;
}
.cs-north {
	height:40px;
	overflow:hidden;
}
.cs-north-bg {
	width: 100%;
	height: 100%;
	background: url(/resources/js/easyui/themes/bootstrap/images/header_bg.png) repeat-x;
}
.cs-north-logo {
	height: 30px;
	margin: 10px 0px 20px 5px;
	display: inline-block;
	color:#0E2D5F;
	font-size:20px;
	font-weight:bold;
	text-decoration:none;
}
.cs-north-info {
	position: absolute;
	color: #777;
	top: 10px;
	right: 30px;
	display: inline-block;
}
</style>
<script type="text/javascript" src="/resources/js/apkconfig/configList.js"></script>
</head>
<body class="cmp-list-body">
	<div id="tb" style="padding:3px">
    	<span>关键字:</span>
		<input id="mark" class="easyui-textbox" style="width: 155px;" name="mark"/>
		<span>状态:</span>
	    <select class="easyui-combobox" id="isDelete" panelHeight="auto" style="width:155px" >
	        <option value="-1" selected>-选择-</option>
            <option value="0" selected>启用</option>
        	<option value="1">废弃</option>
        </select>
        
        <span>版本号:</span>  
						
	 	<input id="sysVer" class="easyui-combobox" style="width: 155px;" name="sysVer" data-options="
		url:'/sysver/list?isUseful=1&json',
		method:'get',
		valueField:'ver',
		textField:'ver'" />
		
    	<a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch();">查询</a> 
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:add()">新增</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:edit()">编辑</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:copy()">复制</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="javascript:del()">删除</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="javascript:abandon()">作废</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="javascript:effect()">启用</a>
    	<a href="#" class="easyui-linkbutton" id="exportData" iconCls="icon-export" plain="true" onclick="submitDataForm('/apkconfig/export',this)">导出</a> 
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:batchEditVer()">批量修改版本号</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:batchEditFile()">批量编辑</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:batchEditLogin()">批量登录配置</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:batchEditRetent()">批量留存限制</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:upgradeApk()">升级包</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:delUpgradeApk()">删除升级包</a>
    	<form id="ff" method="post">
    	<input type="hidden" id="emark" name="mark">
    	<input type="hidden" id="eisDelete" name="isDelete">
		<input type="hidden" id="esysVer" name="sysVer">
    	</form>
	</div>
	<div id="mainPanle" region="center" border="false">
		<table id="tt" class="easyui-datagrid" title="APK配置" iconCls="icon-save" toolbar="#tb" rownumbers="true" idField="id"
			url="/apkconfig/configList?json" singleSelect="true" checkOnSelect="false" selectOnCheck="false" pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100,150,300,600]"> 
		    <thead>		    
		    	<tr>
		    		<th align="center" width="5%" field="id" checkbox="true"></th>
		        	<th align="center" width="5%" field="mark">应用标识</th>
		            <th align="center" width="10%" field="apkName">apk名称</th>
		            <th align="center" width="10%" field="isDelete" formatter="formatterType">启用状态</th>
		            <th align="center" width="10%" field="newTaskNum">新增任务量</th>
		            <th align="center" width="10%" field="retentTaskNum">留存任务量</th>
		            <th align="center" width="5%" field="login" formatter="formatterLogin">登录配置</th>
		            <th align="center" width="5%" field="province" formatter="formatterProvince">省份配置</th>
		            <th align="center" width="5%" field="retent" formatter="formatterRetent">留存限制</th>
		            <th align="center" width="5%" field="device" formatter="formatterDevice">指定机型</th>
		        	<th align="center" width="10%" field="modifyTime">修改时间</th>
		        </tr>
		    </thead>   
		</table>
	</div>
	
	<div id="dlg" class="easyui-dialog" title="批量修改版本号" style="width:300px;height:150px;"
        data-options="iconCls:'icon-save',resizable:true,modal:true">
        <div >
           <label for="sysVer1">系统版本号:</label>
           <input id="sysVer1" class="easyui-combobox" style="width: 155px;" name="sysVer" data-options="
				url:'/sysver/list?isUseful=1&json',
				multiple:true,
				method:'get',
				valueField:'ver',
				textField:'ver'" />
		</div>
		<div region="south" border="false" style="text-align: center; padding: 5px 5px 20px 0;">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="batchEditVerSubmit()">提交</a>
		</div>
	</div>
	
	<!-- <div id="dlg1" class="easyui-dialog" title="批量修改脚本" style="width:600px;height:300px;"
        data-options="iconCls:'icon-save',resizable:true,modal:true">
        <div style="align : center;">
        	<form id="tf" method="post" enctype="multipart/form-data">
		        <table>
		        	<tr>
			            <td><label for="apkUpload">apk:</label></td>
			            <td colspan=3><input type="file" name="file" id="apk"></input></td>
			        </tr>
			        <tr>
			            <td><label for="addJar">新增jar包:</label></td>
			            <td colspan=3>
			            	<input type="file" name="file" id="addJar"></input>
			            </td>
			        </tr>
			         <tr>
			            <td><label for="retentJar">留存jar包:</label></td>
			            <td colspan=3>
			            	<input type="file" name="file" id="retentJar"></input>
			            </td>
			        </tr>
			        <tr>
			            <td><label for="addScript">新增脚本:</label></td>
			            <td colspan=3><input type="file" name="file" id="script"></input></td>
			        </tr>
			        <tr>
			            <td><label for="retentScript">留存脚本:</label></td>
			            <td colspan=3><input type="file" name="file" id="script"></input> </td>
			        </tr>
		        </table>
	        </form>
        </div> 
		<div region="south" border="false" style="text-align: center; padding: 5px 5px 20px 0;">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="batchEditFileSubmit()">提交</a>
		</div>-->
	</div>
</body>

</html>